package com.xgg.taiwuinfo.utils;

import android.content.Context;

import com.xgg.taiwuinfo.R;

public class Element {
    //五行元素常量
    static public final int ELEMENT_NONE = 0;
    static public final int ELEMENT_METAL = 1;
    static public final int ELEMENT_WOOD = 2;
    static public final int ELEMENT_EARTH = 3;
    static public final int ELEMENT_WATER = 4;
    static public final int ELEMENT_FIRE = 5;

    static public String getElementString(Context ctx , int element)
    {
        switch (element)
        {
            case ELEMENT_NONE:
                return ctx.getString(R.string.element_none);
            case ELEMENT_METAL:
                return ctx.getString(R.string.element_metal);
            case ELEMENT_WOOD:
                return ctx.getString(R.string.element_wood);
            case ELEMENT_EARTH:
                return ctx.getString(R.string.element_earth);
            case ELEMENT_WATER:
                return ctx.getString(R.string.element_water);
            case ELEMENT_FIRE:
                return ctx.getString(R.string.element_fire);
            default:
                return ctx.getString(R.string.element_none);
        }
    }
}
